package com.bigegg.employee.domain;


import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.ruoyi.common.core.domain.entity.SysUser;
import lombok.Data;


/**
 *  用户基本信息基类
 *  @author sun
 */
@Data
@JsonNaming( PropertyNamingStrategies.SnakeCaseStrategy.class)
public abstract class TypeUserInfo {

    public TypeUserInfo(SysUser user) {
        this.setName(user.getNickName());
        this.setPhone(user.getPhonenumber());
        this.setAvatar(user.getAvatar());
        this.setEmail(user.getEmail());
    }

    // 名称
    private String name;

    // 头像
    private String avatar;

    // 编码
    private String idCard;

    // 手机号
    private String phone;

    // email
    private String email;

}
